<div class="bg-light lter b-b wrapper-md">
  <h1 class="m-n font-thin h3">视频文件管理</h1>
</div>
<div class="wrapper-md">


  <div class="panel panel-default">
    <div class="panel-heading">
      视频文件管理
    </div>
<div class="table-responsive" >
      <table id="myTable" class="table table-striped m-b-none">

      </table>
    </div>
  </div>

</div>




<script type="text/javascript" >

   var dtUrl = hostport + "/ihaibiCMP/cmp/HttpGetList.htmls?domainUrl="+cmpUrl+"file_info&query=delflag:0&_=";

    $(document).ready(function(){

    $('#myTable').dataTable({      
        "ajax": {
                "url": dtUrl,
                "dataSrc": ""
            },
        "columns": [
            { "data": "Id","width":"auto","title":"ID" },
            { "data": "FileTitle" ,"width":"auto","title": "标题"}
        ],
        "columnDefs": [
            {
                  "data": "Id",
               "targets": 2,
                 "title": "提供ID给第三",
                "render": function ( data, type, row ) {
                  //row.key指拿到的json里面的key对应的value，data值对应的"columns"中拿到的第几个值，这里就是第一个值"key1"对应的value
                    return "this is:"+ data;
                }
            }
                         
        ],
         //当处理大数据时，延迟渲染数据，有效提高Datatables处理能力
        deferRender: true,
        processing: true,
        language: {
           url: 'vendor/jquery/datatables/Chinese.json'
    },
    responsive: true,
    searching: true,
    ordering: true,
    lengthChange: true 

});
});  

</script>